package com.jingdianjichi.subject.domain.convent;

import com.jingdianjichi.subject.domain.entity.SubjectLabelBO;
import com.jingdianjichi.subject.infra.basic.entity.SubjectLabel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 题目标签转换器 BO->DO
 */
@Mapper
public interface SubjectLabelConverter {

    SubjectLabelConverter INSTANCE = Mappers.getMapper(SubjectLabelConverter.class);

    /**
     * 将BO转换为DO
     *
     * @param subjectLabelBO 标签BO
     * @return 标签DO
     */
    SubjectLabel converBoToLabel(SubjectLabelBO subjectLabelBO);

    /**
     * 将DO转换为BO
     *
     * @param subjectLabelList 标签DO
     * @return 标签BO
     */
    List<SubjectLabelBO> converBoToLabel(List<SubjectLabel> subjectLabelList);
}
